package com.stillalive.springioc.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Data
@Component
@ConfigurationProperties(prefix = "dbtypes")
public class DbTypes {
    // 这里的参数名要和配置文件中的一一对应
    private List<String> name;
    private Map<String,String> ball;
}
